package com.ruoyi.quality.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.quality.domain.InspectionTask;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.quality.domain.dto.InspectionTaskDto;
import com.ruoyi.quality.domain.dto.InspectionTaskTemplateSamplingItemDto;
import com.ruoyi.quality.domain.dto.InspectionTaskValueDto;
import com.ruoyi.quality.domain.vo.InspectionTaskValueVo;
import com.ruoyi.quality.domain.vo.InspectionTaskVo;

import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 */
public interface InspectionTaskService  {
    Page<InspectionTaskVo> getInspectionTaskByPage(InspectionTaskDto pageEntity);

    void addInspectionTask(InspectionTaskDto testDto) throws ParseException;

    void addInspectionTasks(List<InspectionTaskDto> inspectionTaskDtos) ;

    void updateInspectionTask(InspectionTaskDto testDto);

    void delInspectionTask(InspectionTaskDto testDto);


    List<InspectionTaskValueVo> getValueTmpByTaskId(InspectionTaskDto testDto);


    void fillInspectionTaskValue(List<InspectionTaskValueDto> inspectionTaskValueDtos);

    /**
     * 输入多过三个的值
     * @param inspectionTaskValueDtos
     */
    void fillInspectionTaskValueExt(List<InspectionTaskValueDto> inspectionTaskValueDtos);


    Map<String, Object> getTmpValueById(InspectionTaskDto testDto);


    /**
     * 根据ID获取填写得值
     * @param inspectionTaskTemplateSamplingItemDto
     * @return
     */
    List<InspectionTaskValueVo> getFromInspectionTaskTemplateSamplingItemId(InspectionTaskTemplateSamplingItemDto inspectionTaskTemplateSamplingItemDto);








}
